<template>
  <div class="choose-video">
    <div class="vid-wrapper">
      <video width="100%" height="100%" loop autoplay muted>
        <source src="http://img95.699pic.com/videos/2016/09/19/e4f6e62a-e339-4c8a-b3bc-d89f50ebf639.mp4" type="video/mp4">
        您的浏览器不支持 HTML5 视频,请更换浏览器。比如 Chrome 、 Firefox 等主流浏览器。
      </video>
      <div class="choose-login">
        <div class="login-con">
          <div class="login-con-title">
            <div class="login-con-title1">
              <p>自动化测试可控制台</p>
              <p>Choosefine automated Test Console</p>
            </div>
            <div class="login-con-title2">
              <span>登</span><span>录</span>
            </div>
          </div>
          <div class="login-con-input">
            <div>
              <input type="text"><i class="login-icon-account"></i>
            </div>
            <div>
              <input type="password"><i class="login-icon-pwd"></i>
            </div>
          </div>
          <div class="login-con-btn">
            <button @click="change">
              <span>登</span>
              <span>录</span>
            </button>
            <span @click="forgetPwd">忘记密码?</span>
          </div>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
  export default {
    data () {
      return {
        itemName: '',
        itemNum: 0
      };
    },
    methods: {
      change() {
        this.$router.push('home');
      },
      forgetPwd() {
        this.$alert('忘记密码？仔细想想？123456？654321？', '温馨提示', {
          confirmButtonText: '确定'
        });
      }
    }
  };
</script>

<style lang="stylus" rel="stylesheet/stylus">
  .choose-video
    height: 100%;
    width: 100%;
    overflow: hidden;

  .vid-wrapper
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /*需要用padding来维持16:9比例,也就是9除以16*/
    height: 0;
    display: flex;
    justify-content: center;

  .vid-wrapper video
    position: absolute;
    top: -84px;
    left: 0;
    width: 100%;
    height: 100%

  .choose-login
    position: absolute;
    z-index: 99;

  .login-con
    flex: 1;
    margin-top: 40%;
    width: 500px;
    font-family: "幼圆";
    .login-con-title
      display: flex;
      width: 100%;
      text-align: center;
      color: #fff;
      .login-con-title1
        flex: 2;
        & > p:first-child
          display: inline-block;
          padding-bottom: 10px;
          margin-bottom: 10px;
          border-bottom: 1px solid #fff;
          font-size: 25px;
        & p:last-child
          font-size: 13.5px;
          font-family: "Arial"
      .login-con-title2
        width: 100%;
        flex: 1;
        border-left: 1px solid #fff;
        font-size: 30px;
        height:60px;
        line-height: 66px;
        & span
          padding: 0 10px;
    .login-con-input
      text-align: center;
      width: 100%;
      margin-top: 40px;
      & .login-icon-account,
      & .login-icon-pwd
        display :inline-block;
        width:30px;
        height:32px;
        position :absolute;
        left:30px;
        top:8px;
      & .login-icon-pwd
        background:url(../../static/resource/login.png) no-repeat 0 -32px;
      & .login-icon-account
        background:url(../../static/resource/login.png) no-repeat;
      & div
        margin-top: 25px;
        position :relative;
        & input
          width: 85%;
          font-size:18px;
          height: 45px;
          padding-left: 50px;
          border: 1px solid transparent;
          outline: 0;
          border-radius: 5px;
          color:#fff;
          background: rgba(255, 255, 255, .4);
        & input:focus
          border-color: #fff;
          outline: 0;
          transition: border 1s;
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(255, 255, 255, .7);
    .login-con-btn
      margin: 25px 0 0 12px;
      & button
        width: 100px;
        height: 45px;
        cursor: pointer;
        border-radius: 5px;
        border: 0;
        outline: 0;
        font-size: 18px;
        color: #fff;
        background: rgba(255, 255, 255, .4);
      & > span
        padding-left: 20px;
        color: #fff;
        cursor: pointer;
</style>
